CMAKE_MINIMUM_REQUIRED(VERSION 3.16)

### source
FILE(GLOB UDP_SRCS "udp/*.cpp" "udp/*.cc" "udp/*.c")

### lib
ADD_LIBRARY(air_net_udp OBJECT ${UDP_SRCS})

### test
ADD_EXECUTABLE(udp_test
    test/udp_test.cc
    $<TARGET_OBJECTS:air_net_udp>
)
TARGET_LINK_LIBRARIES(udp_test
    gtest_main
    gtest
)
